import type { Column } from "@/components/CrudPage/type";

export function useSysDictValueProvider() {
  // 列配置
  const columns: Column[] = [
    {
      label: "键名",
      slot: "key",
      prop: "key",
      create: true,
      edit: true
    },
    {
      label: "描述",
      slot: "label",
      prop: "label",
      create: true,
      edit: true
    },
    {
      label: "数据",
      slot: "value",
      prop: "value",
      create: true,
      edit: true
    },
    {
      label: "状态",
      slot: "status",
      prop: "status",
      create: true,
      edit: true
    },
    {
      label: "排序",
      slot: "order",
      prop: "order",
      create: true,
      edit: true
    },
    {
      label: "操作",
      prop: "operation",
      slot: "operation"
    }
  ];

  return {
    columns
  };
}
